package com.zzqstart.userservice.controller;

import com.zzqstart.commonutils.R;
import com.zzqstart.userservice.entity.vo.QueryChef;
import com.zzqstart.userservice.service.UcenterMemberService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * ClassName: ChefFrontCollection
 * Package: com.zzqstart.cateservice.controller.front
 * Description:
 *
 * @Author zzqstart
 * @Create 2023-03-09 18:06
 * @Version 1.0
 */
@RestController
@RequestMapping("/userservice/chef/front")
@Api(tags = "厨师显示")
public class ChefFrontCollection {

    @Autowired
    private UcenterMemberService ucenterMemberService;

    @PostMapping("/getAllChef/{page}/{limit}")
    public R getAllChef(@PathVariable Long page,@PathVariable Long limit,
                        @RequestBody(required = false) QueryChef query){
        Map<String, Object> map = ucenterMemberService.getAllChef(page,limit,query);
        return R.ok().data(map);
    }
}
